package com.ruoyi.dto;


import com.ruoyi.common.flowable.FlowComment;
import com.ruoyi.common.utils.DictUtils;
import com.ruoyi.common.utils.SecurityUtils;
import lombok.Data;

/**
 * 【请填写功能名称】对象 t_meeting_topic
 * @date 2022-08-25
 */
@Data
public class TMeetingTopicDTO
{
    private static final long serialVersionUID = 1L;

    private Long id;

    private String processInstanceId;

    private Long  createUserId;

    private String isStartUser;

    
    private String meetingTopicDept;

    
    private String isUsed;

    
    private String reporter;

    
    private String title;

    
    private String type;

    
    private String typeLabel;

    
    private String meetingType;


    
    private String meetingTypeLabel;

    
    private String content;

    
    private String files;

    
    private Long sort;

    
    private String reportingUnit;

    
    private String unitComments;

    
    private String material;

    
    private String auditStatus;

    
    private String needAudit;

    
    private String uuid;

    
    private String flowStatus;

    
    private String flowStatusLabel;

    
    private String flowStatusLabelForList;

    public String getTypeLabel() {
        return  DictUtils.getDictLabel("MEETING_TOPIC_TYPE", this.type, "");
    }

    public String getFlowStatusLabel() {
        return FlowComment.codeToName(this.flowStatus);
    }

    public String getMeetingTypeLabel() {
        return  DictUtils.getDictLabel("MEETING_THEME", this.meetingType, "");
    }

    public String getIsStartUser() {
        return SecurityUtils.getLoginUser().getUser().getUserId().equals(this.createUserId) ? "yes" : "no";
    }

    public String getFlowStatusLabelForList() {
       return FlowComment.codeToNameForList(this.flowStatus);
    }
}
